<template>
  <div id="app">
    <router-view v-if="reloadRouter"/>
  </div>
</template>
<script type="text/babel">
// @ is an alias to /src
export default {
  name: 'Facer',
  provide(){
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      reloadRouter: true
    }
  },
  created () {
    document.title = '企业中心'
  },
  mounted () {

  },
  methods: {
    reload(){
      this.reloadRouter = false
      this.$nextTick(() => {
        this.reloadRouter = true
      })
    }
  }
}
</script>
<style>
html, body{height: 100%;padding:0;margin:0; font-size: 12px;background-color: #f6f6f6;}
body *{box-sizing: border-box;}
#app{
  min-width: 1024px;
  width: 100%;
  height: 100%;
  font-family: MicrosoftYaHei;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
